package com.base.card.service;

import com.base.card.domain.bo.TCryptCardKeyHistoryBo;
import com.base.card.domain.vo.TCryptCardKeyHistoryVo;
import com.base.common.core.page.TableDataInfo;
import com.base.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 密码卡密钥历史Service接口
 *
 * @author base
 * @date 2023-10-17
 */
public interface ITCryptCardKeyHistoryService {

    /**
     * 查询密码卡密钥历史
     */
    TCryptCardKeyHistoryVo queryById(String autoId);

    /**
     * 查询密码卡密钥历史列表
     */
    TableDataInfo<TCryptCardKeyHistoryVo> queryPageList(TCryptCardKeyHistoryBo bo, PageQuery pageQuery);

    /**
     * 查询密码卡密钥历史列表
     */
    List<TCryptCardKeyHistoryVo> queryList(TCryptCardKeyHistoryBo bo);

    /**
     * 新增密码卡密钥历史
     */
    Boolean insertByBo(TCryptCardKeyHistoryBo bo);

    /**
     * 修改密码卡密钥历史
     */
    Boolean updateByBo(TCryptCardKeyHistoryBo bo);

    /**
     * 校验并批量删除密码卡密钥历史信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);
}
